<?php
include_once 'include/include.php';
switch ($_GET[action]){
	case 1:
		$menu = array(
			0=>array('name'=>'修改密码','url'=>'password.php'),
			1=>array('name'=>'管理员管理','url'=>'adminmanage.php')
		);
		$iframe = 'main.php';
		break;
	case 2:
		$menu = array(
			0=>array('name'=>'添加分类','url'=>'cateadd.php'),
			1=>array('name'=>'分类管理','url'=>'catemanage.php'),
		);
		$iframe = 'catemanage.php';
		break;
	case 3:
		$menu = array(
			0=>array('name'=>'添加新闻','url'=>'newadd.php'),
			1=>array('name'=>'新闻管理','url'=>'newmanage.php'),
			2=>array('name'=>'被删新闻管理','url'=>'newdeleted.php'),
			3=>array('name'=>'添加推荐新闻','url'=>'newfadd.php'),
			4=>array('name'=>'推荐新闻管理','url'=>'newfmanage.php')
		);
		$iframe = 'newmanage.php';
		break;
	case 4:
		$menu = array(
			0=>array('name'=>'推荐分类','url'=>'featureT.php'),
			1=>array('name'=>'添加推荐','url'=>'featureadd.php'),
			2=>array('name'=>'推荐管理','url'=>'featuremanage.php'),
		);
		//$iframe = 'zhanshimanage.php';
		break;
	case 5:
		$menu = array(
			0=>array('name'=>'首页静态','url'=>'../html/static_index.php'),
			1=>array('name'=>'分类静态','url'=>'../html/static_cate.php'),
			2=>array('name'=>'文章静态','url'=>'../html/static_article.php'),
		);
		//$iframe = 'zhanshimanage.php';
		break;
	default:
		$menu = array(
			0=>array('name'=>'添加新闻','url'=>'newadd.php'),
			1=>array('name'=>'推荐新闻管理','url'=>'newfmanage.php'),
		);
		$iframe = 'main.php';
}

$t->assign('menu',$menu);
$t->assign('iframe',$iframe);
outFile("side_bar");
?>